package com.myhouse.biz;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.myhouse.entity.House;
import com.myhouse.entity.Photo;

public interface HouseService {

	List<House> houseTime(Integer did,Integer sid,Integer tid,String title,Integer startPage,Integer pageSize,
			String price,String updateTime,Integer price1,Integer price2);

	//房屋信息记录数
	int getRows(Integer did,Integer sid,Integer tid,String title,Integer price1,Integer price2);
	
	//房屋信息详情
	House getByHouse(int id);
	
	//添加房屋信息
	void addHouse(House house,Photo photo);
	//查询最新几条房屋信息
	List<House> getNewHouse(int startNum,int num);
	//查询最贵租金的房屋信息
	List<House> getPriceHouse(int num);
	
	//按发布者查询房屋信息
	List<House> getUseridHouses(Integer id,Integer startPage,Integer pageSize);
	int getUseridRows(int id);
	
	//修改
	void updateHouse(House house,Photo photo);
	
	//admin用的方法-->
	List<House> getHousesByDistrictId(int  districtId);
	//查询房屋信息 
	List<House> getAllHouses();
	//删除房屋信息
	void deleteViolationHouses(int id);
	
}
